package com.hadwinling.blog.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.hadwinling.blog.mapper.MoneytagMapper;
import com.hadwinling.blog.entity.Moneytag;
import com.hadwinling.blog.service.MoneytagService;

import java.util.List;

/**
* @Package com.hadwinling.blog.service.impl
* @author HadwinLing
* @date 2020/8/29 16:25
* @version V1.0
*/
@Service
public class MoneytagServiceImpl implements MoneytagService{

    @Resource
    private MoneytagMapper moneytagMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return moneytagMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Moneytag record) {
        return moneytagMapper.insert(record);
    }

    @Override
    public int insertSelective(Moneytag record) {
        return moneytagMapper.insertSelective(record);
    }

    @Override
    public Moneytag selectByPrimaryKey(Integer id) {
        return moneytagMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Moneytag record) {
        return moneytagMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Moneytag record) {
        return moneytagMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Moneytag> selectAllByState(Integer state) {
        return moneytagMapper.selectAllByState(state);
    }

}
